package com.tw;

public class DriveStack {
    public static void main(String [] Args){
        Stack<String> stack= new Stack<String>();

        System.out.println("pushing data to stack.....\n\n");
        stack.push("Delhi");
        stack.push("Pune");

        System.out.println("lets pop data from stack.....");

        String s = stack.pop();
        while(s != null){
            System.out.println(s);
            s = stack.pop();
        }



    }
}
